﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Marmat.Forms.Views.DataGrid
{
    public class BeforeSaveDataEventArgs
    {
        public BeforeSaveDataEventArgs(Marmat.Forms.Local.DataGrid gridControl)
        {
            this._GridControl = gridControl;
        }

        /// <summary>
        /// 返回正在保存的数据表。
        /// </summary>
        public Marmat.Forms.Local.DataGrid GridControl
        {
            get
            {
                return this._GridControl;
            }
        }
        internal Marmat.Forms.Local.DataGrid _GridControl;

        /// <summary>
        /// 逻辑型，设为True，取消正在进行的保存。
        /// </summary>
        public bool Cancel
        {
            get
            {
                return this._Cancel;
            }
            set
            {
                this._Cancel = value;
            }
        }
        internal bool _Cancel = false;
    }
}
